//
//  ETONEHttpClient.h
//  YTwallet
//
//  Created by ZhangLin on 2019/3/14.
//  Copyright © 2019年 hadrlog. All rights reserved.
//


#import <Foundation/Foundation.h>
#import "ETCommon.h"

NS_ASSUME_NONNULL_BEGIN

@interface ETONEHttpClient : NSObject

+(ETONEHttpClient*)sharedInstance;

/**
 *  发送JSON请求(有小菊花提示)
 *
 *  @param requestUrlStr 接口地址
 *  @param dic 参数
 *  @param body 请求体
 *  @param successHandler 成功回调
 *  @param failedHandler  失败回调
 *
 */
- (void)doHTTPSPOST:(NSString *)requestUrlStr Parameters:(nullable NSDictionary*)dic HttpBody:(nullable NSData*)body SuccessHandler:(OnDoGETSuccessBlock)successHandler FailedHandler:(OnDoGETFailedBlock)failedHandler;


/**
 *  发送JSON请求(无小菊花提示)
 *
 *  @param requestUrlStr 接口地址
 *  @param dic 参数
 *  @param body 请求体
 *  @param successHandler 成功回调
 *  @param failedHandler  失败回调
 *
 */
- (void)doHTTPSPOSTNOTips:(NSString *)requestUrlStr Parameters:(nullable NSDictionary*)dic HttpBody:(nullable NSData*)body SuccessHandler:(OnDoGETSuccessBlock)successHandler FailedHandler:(OnDoGETFailedBlock)failedHandler;


//下载文件
-(void)downloadDocFromUrl:(NSString*)path  Storefile:(NSString *)file finish:(OnDocFinish)finish;
@end

NS_ASSUME_NONNULL_END
